import request from '@/utils/request';
/** 获取文章新闻推荐 */
export const getArtilesByIdAPI = ({ channel_id = 0, timestamp = Date.now() }) => {
  return request({
    url: '/v1_0/articles',
    params: {
      channel_id,
      timestamp,
    },
  });
};

/** 获取文章详情 */
export const getDetailByIdAPI = (id: string) => {
  return request({
    url: '/v1_0/articles/' + id,
  });
};
